﻿<?xml version="1.0" encoding="UTF-8"?>
<customUI onLoad="Ribbon_Load" xmlns="http://schemas.microsoft.com/office/2006/01/customui" loadImage="LoadImage">
  <ribbon>
    <tabs>
      <tab id="TabOpenDoPE" label="OpenDoPE">
        <group id="plutextGroup" label="OpenDoPE">

          <button id="buttonAddDoPE" onAction="buttonAddDoPE_Click"
                  label="Add OpenDoPE parts to this docx" showImage="false" 
                  getEnabled="IsAddDoPEEnabled" />

          <button id="buttonShowCTP" onAction="buttonShowCTP_Click"
                  label="Show task pane" showImage="false" 
                  getEnabled="IsShowCTPEnabled" />


          <separator id="separator1" />

        </group>
        <group id="plutextGroup2" label="Bind Text">
            <!-- invoke built in Word functionality via idMso-->
            <button idMso="ContentControlText"
                  label="Bind this text" 
                  size="large" />

        </group>
        <group id="plutextGroup3" label="Conditional">
          
          <button idMso="ContentControlRichText" 
                  label="Wrap with Condition" 
                  size="large" />

        </group>
        <group id="plutextGroup4" label="Repeat">
            <!-- What's with all the groups? 
                 To show the same idMso a second time, it has to be in a separate group. -->
            <button idMso="ContentControlRichText"
                  label="Wrap with Repeat" 
                  size="large" />

        </group>
        
        <group id="plutextGroup5" label="Information">
          <button idMso="ControlProperties"
                label="Properties"
                size="large" />

          <toggleButton idMso="DesignMode"
                label="Show tags"
                size="large" />
        </group>


        <group id="plutextGroup6" label="Diagnostics">
          <button id="buttonShowDocumentXml"
                  onAction="buttonShowDocumentXml_Click"
                label="Document.xml" />
<!--
          <button id="buttonShowXPathsPartXml"
                  onAction="buttonShowXPathsPart_Click"
                label="XPaths Part" />
                -->
          <button id="buttonXPathFixDupes"
                  onAction="buttonXPathsFixDupes_Click"
                label="Fix XPath Dupe IDs" />

        </group>

        <group id="plutextGroup7" label="Macro">

          <button id="buttonInjectMacro" onAction="buttonInjectMacro_Click"
                  label="Inject Macro" showImage="false"
                  getEnabled="isInjectMacroEnabled" />

          <!--
            <button id="buttonPreviousDoc" onAction="buttonPreviousDoc_Click" 
                     imageMso="MailMergeGoToPreviousRecord" label="button2" showLabel="false"
                     getEnabled="IsPreviousDocEnabled" 
                      getScreentip="buttonPreviousDoc_Screentip" />
            
            <button id="buttonNextDoc" onAction="buttonNextDoc_Click"
                    imageMso="MailMergeGoToNextRecord" label="button2" showLabel="false" 
                     getEnabled="IsNextDocEnabled" 
                    getScreentip="buttonNextDoc_Screentip" />
                    
-->                    
        </group>
      </tab>
    </tabs>
  </ribbon>
</customUI>